package com.gxa.service.impl;

import com.gxa.mapper.RefundMapper;
import com.gxa.mapper.RerecordMapper;
import com.gxa.service.RefundService;
import com.gxa.vo.OrderfundmsgVo;
import com.gxa.vo.OrderremsgVo;
import com.gxa.vo.PatientmsgVo;
import com.gxa.vo.RefundcordVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class RefundServiceImpl implements RefundService {

    @Autowired
    private RefundMapper refundMapper;

    @Override
    public List<RefundcordVo> queryAll() {
        List<RefundcordVo> refundcordVos = this.refundMapper.queryAll();
        return refundcordVos;
    }

    @Override
    public List<RefundcordVo> selectAll(String begintime,String endtime,String namecard) {
        List<RefundcordVo> refundcordVos = this.refundMapper.selectAll(begintime,endtime,namecard);
        return refundcordVos;
    }

    @Override
    public List<PatientmsgVo> queryAllpmsg(String medcard) {
        List<PatientmsgVo> patientmsgVos = this.refundMapper.queryAllpmsg(medcard);
        return patientmsgVos;
    }

    @Override
    public List<OrderfundmsgVo> queryAllomsg(String ordernum) {
        List<OrderfundmsgVo> orderfundmsgVos = this.refundMapper.queryAllomsg(ordernum);
        return orderfundmsgVos;
    }

    @Override
    public void updateRemark(String ordernum, String remark) {

        this.refundMapper.updateRemark(ordernum,remark);

    }
}
